import request from '@/utils/request'

export function listGiftRecord(query) {
  return request({
    url: '/prod-api/customerService/giftRecord/listGiftRecord',
    method: 'get',
    params: query
  })
}

export function listRecordTip(query) {
  return request({
    url: '/prod-api/customerService/tipRecord/listRecordTip',
    method: 'get',
    params: query
  })
}

export function listDayReport(query) {
  return request({
    url: '/prod-api/customerService/dayRecord/listDayReport',
    method: 'get',
    params: query
  })
}

export function getDetail(reportId) {
  return request({
    url: '/prod-api/customerService/dayRecord/getDetail/'+reportId,
    method: 'get'
  })
}

export function serviceAppointmentByDay(query) {
  return request({
    url: '/prod-api/weCom/serviceAppointmentByDayAndTotal',
    method: 'get',
    params: query
  })
}
